﻿using System;
using System.Windows.Controls;
using System.Windows;
using CodeCounsel.SharePoint.RibbonDesigner.ViewModel;

namespace CodeCounsel.SharePoint.RibbonDesigner.View.AttachedBehaviors
{
    class ContentControlDragManager
        : DragManager
    {
        ContentControl _contentControl;

        public ContentControlDragManager(ContentControl contentControl, IDragProcessor dragProcessor)
            : base(dragProcessor)
        {
            SourceItemContainer = contentControl;
            _contentControl = contentControl;
            DraggedData = _contentControl.Content;
        }
    }
}
